import request from "@/utils/request"

export const getStocktakingTaskPageApi = (page,pageSize,taskName,category,isEnable)=>request.get(`/stocktaking_task?page=${page}&pageSize=${pageSize}&taskName=${taskName}&category=${category}&isEnable=${isEnable}`)

export const addStocktakingTaskApi = (data)=>request.post('/stocktaking_task',data)

export const updateStocktakingTaskApi = (data)=>request.put('/stocktaking_task',data)

export const deleteStocktakingTaskApi = (taskId)=>request.delete(`/stocktaking_task/${taskId}`)

export const executeTaskOnceApi = (taskId)=>request.post(`/stocktaking_task/execute/${taskId}`)